package com.limboline.bssystem.mapper;

import com.limboline.bssystem.entity.CommodityEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommodityEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CommodityEntity record);

    int insertSelective(CommodityEntity record);

    CommodityEntity selectByPrimaryKey(Integer id);

    CommodityEntity selectByPublishDate(Long datetime);

    List<CommodityEntity> findAll();

    int updateByPrimaryKeySelective(CommodityEntity record);

    int updateByPrimaryKeyWithBLOBs(CommodityEntity record);

    int updateByPrimaryKey(CommodityEntity record);
}